<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page isELIgnored ="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="../../css/loginStyle.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改密码</title>
<script type="text/javascript">
			djConfig = {
				isDebug: false,
				parseOnLoad: true,
				parseWidgets:false,
				searchIds:[]
			};
	    </script>
		<script type="text/javascript" src="../../lib/dojo/dojo.js"></script>
		<script>
	    dojo.require("comba.component.Security");
	    dojo.require("comba.component.HMSToolkit");
	    var HMSRest=new comba.component.Rest();
	    var HMSSecurity=new comba.component.Security();
</script>
</head>
<body>
<div style="margin-top:50px" align="center">
<form id="editPasswordForm">
	<table>
	<tr><td colspan="2" align="center">${EDITPASSWORD_ON_LOGIN_CAUSE}</td></tr>
	<tr><td align="right">原始密码:&nbsp;</td><td align="left">&nbsp;<input type="password" name="oldPassword" value="${CURRENT_USER_PASSWORD}"></td></tr>
	<tr><td align="right">新密码:&nbsp;</td><td align="left">&nbsp;<input type="password" name="newPassword"></td></tr>
	<tr><td align="right">确认新密码:&nbsp;</td align="left"><td>&nbsp;<input type="password" name="confirmPassword"></td></tr>
	<tr><td align="right">
	<input id="savePassword" type="button" value="修改" onclick="HMSSecurity.EditPassword(document.getElementById('editPasswordForm'),${CURRENT_USER_ID},'../../viewLoginAlert.jsp',document.getElementById('savePassword'));"/></td>
	<c:if test ="${EDITPASSWORD_ON_LOGIN_CAUSE_TYPE eq 'PASSWORD_EXPIRED'}" >
	<td><input type="button" value="取消" onclick="location.href='../../viewLoginAlert.jsp'"></td>
	</c:if>
	<c:if test ="${EDITPASSWORD_ON_LOGIN_CAUSE_TYPE ne 'PASSWORD_EXPIRED'}" >
	<td><input type="reset" value="重置" ></td>
	</c:if>
	</tr>
	</table>
</form>
</div>

</body>
</html>